var vm = new Vue({
  el : '#app',
  extends: CommonTools,
  
  data : function(){
    return {
      conditions: {
        time: '',
      },
      pageData: {
        page: 1,
        rows: 10,
        total: 0,
        results: []
      },
      currentRow: null,
      slider:{},
    }
  },

  methods: {
	    
	    /**
	     * 重新加载单据
	     */
		  reload(){
		      var self = this;
		      var url = "../../wmSliderController.do?datagrid1";
		      this.get(url).then((data) => {       
		        self.pageData = data;
		        self.pageData.results.map(function (item){
		        	item.photo  = "http://localhost:8080/jeecg/" + item.photo;
		        });
		      }).catch(err => {
		        this.showError(err);
		      });
		    },
  },
  created() {
	  this.reload();
  },
  
});